2016-07-29 62 views
1

Ich versuche, meine erste Segel App zu erstellen und ich habe die Schritte auf den Segeln begonnen (http://sailsjs.org/get-started). Aber wenn ich versuche, hebt ein Segel zu tun, erhalte ich folgende Fehlermeldung:Sails Aufzug Fehler 'Kann Modul nicht finden' express/node_modules/cookie '

(node:11291) fs: re-evaluating native module sources is not supported.  If you are using the graceful-fs module, please update it to a more recent version. 
module.js:442 
    throw err; 
^ 

Error: Cannot find module 'express/node_modules/cookie' 
at Function.Module._resolveFilename (module.js:440:15) 
at Function.Module._load (module.js:388:25) 
at Module.require (module.js:468:17) 
at require (internal/module.js:20:19) 
at Object.<anonymous> (/Users/master/Desktop/Developer/NodeJS/HelloSails/node_modules/sails/lib/hooks/session/index.js:9:12) 
at Module._compile (module.js:541:32) 
at Object.Module._extensions..js (module.js:550:10) 
at Module.load (module.js:458:32) 
at tryModuleLoad (module.js:417:12) 
at Function.Module._load (module.js:409:3) 
at Module.require (module.js:468:17) 
at require (internal/module.js:20:19) 
at /Users/master/Desktop/Developer/NodeJS/HelloSails/node_modules/sails/lib/app/configuration/index.js:54:28 
at Function.reduce (/Users/master/Desktop/Developer/NodeJS/HelloSails/node_modules/sails/node_modules/lodash/dist/lodash.js:3735:25) 
at Configuration.defaultConfig (/Users/master/Desktop/Developer/NodeJS/HelloSails/node_modules/sails/lib/app/configuration/index.js:53:18) 
at Configuration.bound [as defaults] (/Users/master/Desktop/Developer/NodeJS/HelloSails/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21) 

ich manuell versuchtes Entfernen der ‚node_modules‘ Ordner, Einfügen ausdrücklich als eine Abhängigkeit in meinem package.json und läuft ‚npm ​​installieren‘, aber das hat nicht funktioniert.

Im laufenden Knoten V6.2.2 Sail v0.10.5 und NPM v3.10.6

was ich hier fehlt?

+0

hallo verwenden. Hast du jemals eine Antwort bekommen? – JAG

Antwort

-2

Es ist ein Abhängigkeitsproblem mit Npm, das funktionierte für mich, als ich das Problem hatte.

npm -g install [email protected]

+3

Das hat nicht für mich funktioniert! – Sagar

0

Update segelt Version auf die neueste ist es Ausgabe von npm Struktur, Abhängigkeit alte Version verwenden Baumebene, während neue Version gleichen Niveau Struktur sails upgrade version