我正在尝试与laragon一起学习laravel在线课程。我需要运行命令npm install
,但这标志着一个错误,我不知道如何解决。
我试图修改路径,但这没用
C:\laragon\www\social>npm install "CALL "C:\laragon\nodejs\\node.exe" "C:\laragon\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. > node-sass@4.11.0 install C:\laragon\www\social\node_modules\node-sass > node scripts/install.js npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN img-loader@3.0.1 requires a peer of imagemin@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! file C:\Windows\system32\cmd.exe;C:\Users\Caribay\Anaconda3\Library\bin\graphviz;C:\Users\Caribay\AppData\Roaming\npm npm ERR! path C:\Windows\system32\cmd.exe;C:\Users\Caribay\Anaconda3\Library\bin\graphviz;C:\Users\Caribay\AppData\Roaming\npm npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn C:\Windows\system32\cmd.exe;C:\Users\Caribay\Anaconda3\Library\bin\graphviz;C:\Users\Caribay\AppData\Roaming\npm npm ERR! node-sass@4.11.0 install: `node scripts/install.js` npm ERR! spawn C:\Windows\system32\cmd.exe;C:\Users\Caribay\Anaconda3\Library\bin\graphviz;C:\Users\Caribay\AppData\Roaming\npm ENOENT npm ERR! npm ERR! Failed at the node-sass@4.11.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Caribay\AppData\Roaming\npm-cache\_logs\2019-01-22T03_32_49_327Z-debug.log
我希望此命令能够正常运行,但会标记这些错误,请帮帮我
P.S:我正在使用Windows 7家庭高级版的笔记本电脑。
答案 0 :(得分:3)
$ npm cache clean --force
$ rm -rf node_modules
$ npm install
然后使用$ npm start
答案 1 :(得分:0)
我认为您应该手动安装ajv软件包或将其更新为6.0版(如果您已经具有较低版本)
command.ExecuteReader