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 warning; bower install #363

Closed
charlescho opened this issue May 14, 2016 · 4 comments
Closed

npm warning; bower install #363

charlescho opened this issue May 14, 2016 · 4 comments

Comments

@charlescho
Copy link

when I run a npm install I get the following warning:

npm WARN cannot run in wd [email protected] bower install (wd=/mnt/c/users/.../Repos/xyz)

@stehufntdev
Copy link
Collaborator

Thanks for reporting the issue, can you please provide the exact npm install command that produced the warning? On a recent internal build I was able to install npm and bower without error:

root@STEHUF-TEST:/mnt/c/Users/Test# npm install bower npm http GET https://registry.npmjs.org/bower npm http 200 https://registry.npmjs.org/bower npm http GET https://registry.npmjs.org/bower/-/bower-1.7.9.tgz npm http 200 https://registry.npmjs.org/bower/-/bower-1.7.9.tgz [email protected] node_modules/bower root@STEHUF-TEST:/mnt/c/Users/Test#

@russalex
Copy link
Contributor

What build are you running? We are tracking some npm errors in #3. The status of npm on build 14342 is:

  1. npm install bower should run with no errors on both / and /mnt/x directories
  2. sudo -g npm install foo should run with no errors
  3. There is still a bug on downloading larger files tracked by npm install corrupts large entries in package.tgz content (node 6) #313

From build 14342:

russ@DESKTOP-K1JHN54:/mnt/c/tmp$ npm install bower
/mnt/c/tmp
└── [email protected]

npm WARN enoent ENOENT: no such file or directory, open '/mnt/c/tmp/package.json'
npm WARN tmp No description
npm WARN tmp No repository field.
npm WARN tmp No README data
npm WARN tmp No license field.

Please let me know if this is not your experience or if you're trying to do something else.

@charlescho
Copy link
Author

charlescho commented May 16, 2016

I'm on build 14342.

I initially received this error when running npm install for the angular-seed app. There's a postinstall script in package.json that calls bower install to install bower packages. I believe the error is related to installing bower packages and not not the actual installation of the bower npm package.

Related to this though, I wasn't able to install the bower npm package to begin with because of #364. I had to switch back into windows console and use npm install there to get bower installed.

If I run node_modules\bower\bin\bower install directly, I receive the following error:

bower ESUDO         Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option

If I run node_modules\bower\bin\bower --allow-root install it seems to work. But if I edit package.json to call bower --allow-root install I still receive the same error as above.

@benhillis
Copy link
Member

Closing this out as this seems to be fixed in a more recent insider build. Please reopen with your exact sequence of commands you're using if you continue to see this issue.

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