PS C:\Users\EDZ\Desktop\update\threeDimensionalModel> npm install
(node:19508) ExperimentalWarning: The fs.promises API is experimental
npm ERR! code 1
npm ERR! path C:\Users\EDZ\Desktop\update\threeDimensionalModel\node_modules\fibers
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@10.15.1 | win32 | x64
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Anaconda3\python.EXE -c import sys; print “%s.%s.%s” % sys.version_info[:3];
npm ERR! gyp ERR! stack File “”, line 1
npm ERR! gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
npm ERR! gyp ERR! stack ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:189:13)
npm ERR! gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm ERR! gyp ERR! System Windows_NT 10.0.18363
npm ERR! gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\EDZ\Desktop\update\threeDimensionalModel\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd C:\Users\EDZ\Desktop\update\threeDimensionalModel\node_modules\fibers
npm ERR! gyp ERR! node -v v10.15.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
我首先用了yarn安装,后来也报错了,原来是node-sass原因
运行
cnpm install node-sass
然后重新运行 npm run dev 正确