Instalacja npm nie działa w Windows PowerShell

Więc moim problemem jest to. Mam projekt z pakietem.json. Gdy w wierszu polecenia (cmd.exe) uruchom „npm zainstaluj” wszystko instaluje się zgodnie z oczekiwaniami. Jednak gdy robię dokładnie to samo w PowerShell (powershell.exe), pojawia się błąd: „npm ERR! projekt. Zawsze szuka pakietu.json w c: z jakiegoś powodu nie rozumiem.

Poniżej znajduje się npm-debug.log (który również jest napisany w c: nawet jeśli moja ścieżka to c: kod myProject):

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 error install Couldn't read dependencies
6 error Error: ENOENT, open 'c:\package.json'
7 error If you need help, you may report this log at:
7 error     <http://github.com/isaacs/npm/issues>
7 error or email it to:
7 error     <[email protected]>
8 error System Windows_NT 6.2.9200
9 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
10 error cwd c:\
11 error node -v v0.10.21
12 error npm -v 1.3.11
13 error path c:\package.json
14 error code ENOENT
15 error errno 34
16 verbose exit [ 34, true ]

Nigdzie nie mogę znaleźć rozwiązania tego problemu. Zmienna PATH jest ustawiona poprawnie, ponieważ działa zarówno węzeł, jak i npm.

questionAnswers(2)

yourAnswerToTheQuestion