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

Error install 1.0.0-beta.11-webpack #1522

Closed
jvbianchi opened this issue Aug 2, 2016 · 10 comments
Closed

Error install 1.0.0-beta.11-webpack #1522

jvbianchi opened this issue Aug 2, 2016 · 10 comments
Labels
needs: repro steps We cannot reproduce the issue with the information given type: bug/fix

Comments

@jvbianchi
Copy link

jvbianchi commented Aug 2, 2016

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    OSX El Capitan
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    angular-cli:1.0.0-beta.11-webpack
    node:v6.3.1
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    npm i -g [email protected]
  4. The log given by the failure. Normally this include a stack trace and some
    more information.

`[email protected] requires a peer of webpack@^1.4.0 but none was installed.
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.3.1/bin/node" "/Users/user/.nvm/versions/node/v6.3.1/bin/npm" "i" "-g" "[email protected]"
npm ERR! node v6.3.1
npm ERR! npm v3.10.5
npm ERR! path /Users/user/.nvm/versions/node/v6.3.1/lib/node_modules/angular-cli
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access

npm ERR! enoent ENOENT: no such file or directory, access '/Users/user/.nvm/versions/node/v6.3.1/lib/node_modules/angular-cli'
npm ERR! enoent ENOENT: no such file or directory, access '/Users/user/.nvm/versions/node/v6.3.1/lib/node_modules/angular-cli'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /Users/user/mycode/code/npm-debug.log`

@sirajc
Copy link

sirajc commented Aug 2, 2016

This related to, or duplicate of #1520

@TheLarkInn
Copy link
Member

Yes it is @sirajc thank you for tying the bug to it.

@FabienDehopre
Copy link

I have another error message...

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] requires a peer of webpack@^1.4.0 but none was installed.
npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save-dev" "angular-cli@webpack"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! path /home/fabien/devs/sample/node_modules/.staging/sshpk-bb6b4d5e
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/home/fabien/devs/sample/node_modules/.staging/sshpk-bb6b4d5e' -> '/home/fabien/devs/sample/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk'
npm ERR! enoent ENOENT: no such file or directory, rename '/home/fabien/devs/sample/node_modules/.staging/sshpk-bb6b4d5e' -> '/home/fabien/devs/sample/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /home/fabien/devs/sample/npm-debug.log

I don't know if it's related or another issue.

@suchja
Copy link

suchja commented Aug 5, 2016

I do get a similar message like @FabienDehopre

Linux 4.4.16-boot2docker
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save-dev" "angular-cli@webpack"
npm ERR! node v5.12.0
npm ERR! npm  v3.8.6
npm ERR! path /usr/src/app/new-hello/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/src/app/new-hello/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/src/app/new-hello/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

I tried all sorts of different combinations of node and npm (all in a docker container) without any success.

Installation with npm install -g angular-cli@webpack succeed without any major issues. Then I called ng new hello which resulted in:

Successfully initialized git.
ENOENT: no such file or directory, chmod '/usr/src/app/new-hello/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
Error: ENOENT: no such file or directory, chmod '/usr/src/app/new-hello/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
    at Error (native)

Is there any kind of debug switch to get more information on what the problem really is?

UPDATE
After analysing the path given in the error message I recognised that /usr/src/app/new-hello/node_modules/ember-cli/ does not exists. Does that mean I need to install ember-cli separately or globally?

@filipesilva filipesilva added type: bug/fix needs: repro steps We cannot reproduce the issue with the information given labels Aug 15, 2016
@filipesilva
Copy link
Contributor

I don't think the errors in this thread are actually related to #1520.

These seem to indicate a problem with the npm install itself:

npm ERR! enoent ENOENT: no such file or directory, access '/Users/user/.nvm/versions/node/v6.3.1/lib/node_modules/angular-cli'
npm ERR! enoent ENOENT: no such file or directory, access '/Users/user/.nvm/versions/node/v6.3.1/lib/node_modules/angular-cli'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! enoent ENOENT: no such file or directory, rename '/home/fabien/devs/sample/node_modules/.staging/sshpk-bb6b4d5e' -> '/home/fabien/devs/sample/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk'
npm ERR! enoent ENOENT: no such file or directory, rename '/home/fabien/devs/sample/node_modules/.staging/sshpk-bb6b4d5e' -> '/home/fabien/devs/sample/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/src/app/new-hello/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/src/app/new-hello/node_modules/ember-cli/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

I don't really have an answer for now. I can't reproduce it myself (win10, node v5.12.0, npm 3.8.6) so it might be a setup dependent thing.

I know this is the default answer for npm issues but... have you tried uninstalling the global angular-cli, doing npm cache clean and then re-installing?

@Mavlarn
Copy link

Mavlarn commented Aug 25, 2016

I also got this error and can not create new project, is there any solution before new version?

@weedgrease
Copy link

Still having this issue as well. Why was this closed?

@hansl
Copy link
Contributor

hansl commented Dec 22, 2016

Closing this as obsolete.

@hansl hansl closed this as completed Dec 22, 2016
@elimisteve
Copy link

Fixed it.

I had moved node_modules/<package_name> to node_modules/<package_name>-MOVED so that npm would be forced to reinstall it, but instead I got the same errors as @FabienDehopre and @suchja. But moving my node_modules/<package_name>-MOVED directory someplace else entirely fixed this; npm install now works as I wanted!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: repro steps We cannot reproduce the issue with the information given type: bug/fix
Projects
None yet
Development

No branches or pull requests

10 participants