Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERR! 404 Not Found: @angular/compiler #925

Closed
zhangwonderful opened this issue Apr 3, 2017 · 4 comments
Closed

npm ERR! 404 Not Found: @angular/compiler #925

zhangwonderful opened this issue Apr 3, 2017 · 4 comments

Comments

@zhangwonderful
Copy link

When I run build.sh dev, console output below error message.
The command '/bin/sh -c git clone https://github.com/akveo/ng2-admin.git /var/www && cd /var/www && npm install --global rimraf && npm run clean && npm install --global webpack webpack-dev-server [email protected] && npm install && npm run prebuild:prod && npm run build:prod' returned a non-zero code: 1
[root@eureka ng2-admin]# npm install @angular/compiler
npm ERR! Linux 3.10.0-514.el7.x86_64
npm ERR! argv "/root/.nvm/versions/node/v7.8.0/bin/node" "/root/.nvm/versions/node/v7.8.0/bin/npm" "install" "@angular/compiler"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! code E404

npm ERR! 404 Not Found: @angular/compiler
npm ERR! 404
npm ERR! 404 '@angular/compiler' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2017-04-03T03_27_23_179Z-debug.log

I don't know how to troubleshoot this issue.

@zhangwonderful
Copy link
Author

The whole log file content as below:
0 info it worked if it ends with ok
1 verbose cli [ '/root/.nvm/versions/node/v7.8.0/bin/node',
1 verbose cli '/root/.nvm/versions/node/v7.8.0/bin/npm',
1 verbose cli 'install',
1 verbose cli '@angular/compiler' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData @angular/[email protected]
8 silly fetchNamedPackageData @angular/compiler
9 silly mapToRegistry name @angular/compiler
10 silly mapToRegistry scope (from package name) @angular
11 verbose mapToRegistry no registry URL found in name for scope @angular
12 silly mapToRegistry using default registry
13 silly mapToRegistry registry http://192.168.10.88:5984/registry/_design/app/_rewrite
14 silly mapToRegistry data Result {
14 silly mapToRegistry raw: '@angular/compiler',
14 silly mapToRegistry scope: '@angular',
14 silly mapToRegistry escapedName: '@angular%2fcompiler',
14 silly mapToRegistry name: '@angular/compiler',
14 silly mapToRegistry rawSpec: '',
14 silly mapToRegistry spec: 'latest',
14 silly mapToRegistry type: 'tag' }
15 silly mapToRegistry uri http://192.168.10.88:5984/registry/_design/app/_rewrite/@angular%2fcompiler
16 verbose request uri http://192.168.10.88:5984/registry/_design/app/_rewrite/@angular%2fcompiler
17 verbose request no auth needed
18 info attempt registry request try #1 at 11:27:23 AM
19 verbose request id 75078e4444fb3559
20 http request GET http://192.168.10.88:5984/registry/_design/app/_rewrite/@angular%2fcompiler
21 http 404 http://192.168.10.88:5984/registry/_design/app/_rewrite/@angular%2fcompiler
22 verbose headers { server: 'CouchDB/1.6.1 (Erlang OTP/R16B03-1)',
22 verbose headers date: 'Mon, 03 Apr 2017 03:27:23 GMT',
22 verbose headers 'content-type': 'application/json',
22 verbose headers 'content-length': '52',
22 verbose headers 'cache-control': 'must-revalidate' }
23 silly get cb [ 404,
23 silly get { server: 'CouchDB/1.6.1 (Erlang OTP/R16B03-1)',
23 silly get date: 'Mon, 03 Apr 2017 03:27:23 GMT',
23 silly get 'content-type': 'application/json',
23 silly get 'content-length': '52',
23 silly get 'cache-control': 'must-revalidate' } ]
24 silly fetchPackageMetaData Error: 404 Not Found: @angular/compiler
24 silly fetchPackageMetaData at makeError (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:304:12)
24 silly fetchPackageMetaData at CachingRegistryClient. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:290:14)
24 silly fetchPackageMetaData at Request._callback (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:212:14)
24 silly fetchPackageMetaData at Request.self.callback (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:186:22)
24 silly fetchPackageMetaData at emitTwo (events.js:106:13)
24 silly fetchPackageMetaData at Request.emit (events.js:194:7)
24 silly fetchPackageMetaData at Request. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:1081:10)
24 silly fetchPackageMetaData at emitOne (events.js:96:13)
24 silly fetchPackageMetaData at Request.emit (events.js:191:7)
24 silly fetchPackageMetaData at IncomingMessage. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:1001:12)
24 silly fetchPackageMetaData error for @angular/[email protected] { Error: 404 Not Found: @angular/compiler
24 silly fetchPackageMetaData at makeError (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:304:12)
24 silly fetchPackageMetaData at CachingRegistryClient. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:290:14)
24 silly fetchPackageMetaData at Request._callback (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:212:14)
24 silly fetchPackageMetaData at Request.self.callback (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:186:22)
24 silly fetchPackageMetaData at emitTwo (events.js:106:13)
24 silly fetchPackageMetaData at Request.emit (events.js:194:7)
24 silly fetchPackageMetaData at Request. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:1081:10)
24 silly fetchPackageMetaData at emitOne (events.js:96:13)
24 silly fetchPackageMetaData at Request.emit (events.js:191:7)
24 silly fetchPackageMetaData at IncomingMessage. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:1001:12) pkgid: '@angular/compiler', statusCode: 404, code: 'E404' }
25 silly rollbackFailedOptional Starting
26 silly rollbackFailedOptional Finishing
27 silly runTopLevelLifecycles Finishing
28 silly install printInstalled
29 verbose stack Error: 404 Not Found: @angular/compiler
29 verbose stack at makeError (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:304:12)
29 verbose stack at CachingRegistryClient. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:290:14)
29 verbose stack at Request._callback (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:212:14)
29 verbose stack at Request.self.callback (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:186:22)
29 verbose stack at emitTwo (events.js:106:13)
29 verbose stack at Request.emit (events.js:194:7)
29 verbose stack at Request. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:1081:10)
29 verbose stack at emitOne (events.js:96:13)
29 verbose stack at Request.emit (events.js:191:7)
29 verbose stack at IncomingMessage. (/root/.nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/request/request.js:1001:12)
30 verbose statusCode 404
31 verbose pkgid @angular/compiler
32 verbose cwd /opt/angular2/ng2-admin
33 error Linux 3.10.0-514.el7.x86_64
34 error argv "/root/.nvm/versions/node/v7.8.0/bin/node" "/root/.nvm/versions/node/v7.8.0/bin/npm" "install" "@angular/compiler"
35 error node v7.8.0
36 error npm v4.2.0
37 error code E404
38 error 404 Not Found: @angular/compiler
39 error 404
40 error 404 '@angular/compiler' is not in the npm registry.
41 error 404 You should bug the author to publish it (or use the name yourself!)
42 error 404 Note that you can also install from a
43 error 404 tarball, folder, http url, or git url.
44 verbose exit [ 1, true ]

@zhangwonderful
Copy link
Author

zhangwonderful commented Apr 3, 2017

I have resolved the above error.
But when executed the command "npm install", the console output warns as below:
[root@eureka ng2-admin]# npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/wintersmith/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] requires a peer of eslint-plugin-jsx-a11y@^2.2.3 but none was installed.
npm WARN [email protected] requires a peer of eslint-plugin-react@^6.6.0 but none was installed.

I couldn't resolve this issue, would you please help me? Thanks a lot.

@mindfocus
Copy link

that's not big deal , ignore it

@nnixaa nnixaa closed this as completed Apr 12, 2017
@ghost
Copy link

ghost commented Aug 9, 2017

How was it resolved as I get this error pointing the build to artifactory and works while pointing to NPM registry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants