当我在laravel 5.5中运行npm install时,它会在安装

时间:2018-03-12 01:22:13

标签: laravel laravel-5

当我在laravel 5.5中运行npm install时,它会在安装过程中显示错误。我重新安装node.js和 安装新的laravel但没有工作,所以如果有人知道请帮助我

这是屏幕截图: enter image description here

'node' is not recognized as an internal or external command,
operable program or batch file.
npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.7.2 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.7.2 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\naqib\AppData\Roaming\npm-cache\_logs\2018-03-12T00_58_19_398Z-debug.log

有人可以帮助我吗

1 个答案:

答案 0 :(得分:0)

当我遇到NPM包问题时,我的第一个调试步骤是删除node_modules文件夹,然后重新安装所有包(使用命令yarnnpm install)。你有机会拍摄吗?