Skip to content

Installing npm packages doesn't work in Visual Studio 2013 Community Edition #132

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

Closed
nramsey opened this issue May 22, 2015 · 3 comments
Closed

Comments

@nramsey
Copy link

nramsey commented May 22, 2015

If I select "Install New npm Packages" search for a package and click "Install" it acts as if everything is working properly.

CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
[email protected] node_modules\cheerio
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected]

====npm command completed with exit code 0====

But nothing is added to my packages either in VisualStudio or in my file directory, and nothing is added to package.json.

If I add the package to package.json myself, the package shows up as (missing) I then select "Install Missing npm Packages"

I get the following errors:

CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.3
npm ERR! npm  v2.9.1
npm ERR! path C:\Windows\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058
npm ERR! package.json ENOENT, open 'C:\Windows\package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Windows\npm-debug.log

====npm command completed with exit code -4058====

If I select the individual missing package and select "Install Missing npm Package" I get the same behavior as installing above, where it seems to work but the package remains (missing) and no data is actually added to the filesystem.

@mousetraps
Copy link
Contributor

What's the full path to your project and project files? It looks like the project folder location itself is exceeding max_path (#69), so the install command was instead started in the windows directory.

Also what happens if you run .npm install <somepackage> from the Interactive window?

@mousetraps
Copy link
Contributor

haven't received any more info on this, so closing it as no-repro for now. Feel free to re-open if you're still running into the issue.

@ashishmorgan
Copy link

I am using some shared drive. Path is like '\somedrive\myProject'. I am getting the same error. Is this because of the shared drive?

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

No branches or pull requests

3 participants