npm安装错误-跳过可选依赖

Emm*_*ini 3 laravel laragon

我正在尝试与laragon一起学习laravel在线课程。我需要运行该命令npm install,但是它标志着一个错误,并且我不知道如何解决它。

我试图修改路径,但是没有用

C:\ laragon \ www \ social> npm安装
“ CALL” C:\ laragon \ nodejs \\ node.exe“” C:\ laragon \ nodejs \\ node_modules \ npm \ bin \ npm-cli.js“前缀-g” no se conoce como un comando interno o externo,
可编辑的程序集。

> node-sass@4.11.0安装C:\ laragon \ www \ social \ node_modules \ node-sass
>节点脚本/install.js

npm WARN ajv-keywords@3.2.0需要一个对等体ajv@^6.0.0,但没有安装。您必须自己安装对等依赖项。
npm WARN img-loader@3.0.1需要一个对等映像imagemin@^5.0.0 || ^ 6.0.0,但未安装。您必须自己安装对等依赖项。
npm警告可选的跳过选择性依赖性:fsevents@1.2.7(node_modules \ fsevents):
npm WARN notsup跳过依赖项:fsevents@1.2.7不受支持的平台:通缉{“ os”:“ darwin”,“ arch”:“ any”}(当前:{“ os”:“ win32”,“ arch”: “ x64”})

npm ERR!文件C:\ Windows \ system32 \ cmd.exe; C:\ Users \ Caribay \ Anaconda3 \ Library \ bin \ graphviz; C:\ Users \ Caribay \ AppData \ Roaming \ npm
npm ERR!路径C:\ Windows \ system32 \ cmd.exe; C:\ Users \ Caribay \ Anaconda3 \ Library \ bin \ graphviz; C:\ Users \ Caribay \ AppData \ Roaming \ npm
npm ERR!代码ELIFECYCLE
npm ERR!errno ENOENT
npm ERR!syscall生成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安装:`node scripts / install.js`
npm ERR!生成C:\ Windows \ system32 \ cmd.exe; C:\ Users \ Caribay \ Anaconda3 \ Library \ bin \ graphviz; C:\ Users \ Caribay \ AppData \ Roaming \ npm ENOENT
npm ERR!
npm ERR!在node-sass@4.11.0安装脚本处失败。
npm ERR!npm可能不是问题。上面可能还有其他日志记录输出。

npm ERR!可以在以下位置找到此运行的完整日志:
npm ERR!C:\ Users \ Caribay \ AppData \ Roaming \ npm-cache \ _logs \ 2019-01-22T03_32_49_327Z-debug.log

我希望此命令可以正常运行,但会标记这些错误,请帮帮我

PS:我正在使用Windows 7家庭高级版的笔记本电脑。

小智 5

  1. $ npm cache clean --force
  2. 通过删除node_modules$ rm -rf node_modules
  3. $ npm install

然后重新开始 $ npm start