2016-10-29 4 views
0

Я следую руководству по ионной установке, но когда я хочу создать приложение, оно даст мне ошибку.Невозможно создать ионное приложение 2

Команда вхожу является:

ionic start cutePuppyPics --v2 

Ошибка дает это:

npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files (x86)\\Nodist\\v\\nodev7.0.0\\node.exe" "C:\\Program Files (x86)\\Nodist\\bin\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v7.0.0 
npm ERR! npm v3.10.6 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] postinstall: `node scripts/build.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the node-sass package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node scripts/build.js 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs node-sass 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls node-sass 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  E:\nodeProjects\ionic\cutePuppyPics\npm-debug.log 
Error with start undefined 
Error Initializing app: There was an error with the spawned command: npminstall 
There was an error with the spawned command: npminstall 
Caught exception: 
undefined 

Mind letting us know? https://github.com/driftyco/ionic-cli/issues 
+0

Можете ли вы добавить версию 'node' и' npm', которую вы используете? Для этого просто запустите 'node -v' и' npm -version'. – sebaferreras

+0

Я использую версию узла v7.0.0 и npm v3.10.6 –

+0

Такая же проблема здесь. – Natanael

ответ

1

Node v7.0.0 вызывает эту проблему. Вместо nodejs v7.0.0 используйте nodejs v6.9.1 или установите версию узла LTS от https://nodejs.org/en/download

0

При создании проекта не обязательно использовать --v2. Просто введите

ionic start cutePuppyPics blank 
0

--v2 не работает с новейшими ионными. вы можете использовать

ionic start cutePuppyPics ionic-angular (for ionic 2.x) 
ionic start cutePuppyPics ionic1 (ionic 1.x) 
Смежные вопросы