我尝试运行应用程序但是在使用sails lift时遇到错误。我按照程序安装了sail.js.我创建了一个记事本文件我使用命令节点C:\ Users \ Vignesh Ravi \ AppData \ Roaming \ npm \ node_modules \ sails \ bin \ sails.js lift并保存为sails.bat文件并放入C:\ Windows \ System32但是我仍然有错误可以解决这个错误吗?提前谢谢....
I followed the procedure:
C:\Users\Vignesh Ravi>cd AppData
C:\Users\Vignesh Ravi\AppData>cd Roaming
C:\Users\Vignesh Ravi\AppData\Roaming>cd npm
C:\Users\Vignesh Ravi\AppData\Roaming\npm>sails new xyz
=====================================================
You seem to be using NPM >= v3.0.0, which no longer
supports symbolic links in the `node_modules/` folder.
As of Feb. 2016, the Sails team is still working on a
speedier solution to optimize `sails new` that will
be released as a 0.12.x patch. But in the mean time,
your new Sails app's dependencies must be set up
using `npm install`.
Because of this, creating your new Sails app will
take longer than you might be used to. Please bear
with us; or if you have a need for speed, downgrade
to NPM < v3.0.0 in the mean time. Thanks!
=====================================================
Installing dependencies... (this could take a little while)
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN prefer global coffee-script@1.10.0 should be installed with -g
npm notice created a lockfile as package-lock.json. You should commit this file.
added 261 packages in 22.306s
info: Created a new Sails app `xyz`!
C:\Users\Vignesh Ravi\AppData\Roaming\npm>cd xyz
C:\Users\Vignesh Ravi\AppData\Roaming\npm\xyz>npm install
up to date in 3.282s
C:\Users\Vignesh Ravi\AppData\Roaming\npm\xyz>sails lift
C:\Users\Vignesh Ravi\AppData\Roaming\npm\xyz>node C:\Users\Vignesh Ravi\AppData\Roaming\npm\node_modules\sails\bin\sails.js lift
module.js:487
throw err;
^
Error: Cannot find module 'C:\Users\Vignesh'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
&#13;
答案 0 :(得分:0)
试试这个,
$ sails new sdc
$ cd sdc
$ npm install
$ sails lift
你缺少什么?
sails lift