1
我沒有使用Sails 1.0的問題。當這個問題開始時,我沒有在PC上安裝或刪除任何新東西。我重新安裝了Windows以及仍然有同樣的問題:Sails.js 1.0打破新鮮安裝
[email protected] MINGW64 /d/
$ clear
[email protected] MINGW64 /d/
$ node -v
v6.11.5
[email protected] MINGW64 /d/
$ npm install [email protected] -g
C:\Users\dvs\AppData\Roaming\npm\sails -> C:\Users\dvs\AppData\Roaming\npm\node_modules\sails\bin\sails.js
C:\Users\dvs\AppData\Roaming\npm
`-- [email protected]
[email protected] MINGW64 /d/
$ sails new exampleproject
C:\Users\dvs\AppData\Roaming\npm\node_modules\sails\node_modules\machine\lib\private\help-build-machine.js:1237
);//parley(…)
^
SyntaxError: Unexpected token)
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\dvs\AppData\Roaming\npm\node_modules\sails\node_modules\machine\lib\build.js:7:24)
[email protected] MINGW64 /d/
$
您是否嘗試過不使用測試版,而只是'NPM安裝船帆-g' – dzm
這是應該作爲GitHub倉庫的bug報告提交的問題。你將更有可能在那裏找到你需要的幫助。 –
我會盡力在那裏謝謝 –