25 / 9 / 17
Регистрация: 22.12.2015
Сообщений: 2,097
|
|
1 | |
Webpack не запускаться для npm run start03.08.2018, 15:19. Показов 4389. Ответов 2
Метки нет (Все метки)
Установил глобально
Код
Microsoft Windows [Version 10.0.14393] (c) Корпорация Майкрософт (Microsoft Corporation), 2016. Все права защищены. L:\redux js\react>npm run build npm ERR! file L:\redux js\react\package.json npm ERR! code EJSONPARSE npm ERR! Failed to parse json npm ERR! Unexpected token s in JSON at position 65 while parsing near '..."main": "index.js", npm ERR! scripts": { npm ERR! "bu...' npm ERR! File: L:\redux js\react\package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! Tell the package author to fix their package.json file. JSON.parse npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Будуй житя\AppData\Roaming\npm-cache\_logs\2018-08-03T12_01_51_378Z-debug.log L:\redux js\react>npm run start npm ERR! file L:\redux js\react\package.json npm ERR! code EJSONPARSE npm ERR! Failed to parse json npm ERR! Unexpected token , in JSON at position 143 while parsing near '...nfig.js" npm ERR! } npm ERR! }, npm ERR! "license": "ISC"...' npm ERR! File: L:\redux js\react\package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! Tell the package author to fix their package.json file. JSON.parse npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Будуй житя\AppData\Roaming\npm-cache\_logs\2018-08-03T12_02_42_793Z-debug.log L:\redux js\react>npm install -g webpack npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ECONNRESET: request to https://registry.npmjs.org/repeat-element failed, reason: read ECONNRESET npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation. npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/assert failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Будуй житя\AppData\Roaming\npm-cache\_logs\2018-08-03T12_08_20_778Z-debug.log L:\redux js\react>npm install -g webpack C:\Users\Будуй житя\AppData\Roaming\npm\webpack -> C:\Users\Будуй житя\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\webpack\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) + webpack@4.16.4 added 319 packages in 170.814s L:\redux js\react>npm run start npm ERR! file L:\redux js\react\package.json npm ERR! code EJSONPARSE npm ERR! Failed to parse json npm ERR! Unexpected token , in JSON at position 143 while parsing near '...nfig.js" npm ERR! } npm ERR! }, npm ERR! "license": "ISC"...' npm ERR! File: L:\redux js\react\package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! Tell the package author to fix their package.json file. JSON.parse npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Будуй житя\AppData\Roaming\npm-cache\_logs\2018-08-03T12_15_32_200Z-debug.log L:\redux js\react>npm run start > redux@1.0.0 start L:\redux js\react > webpack-dev-server The CLI moved into a separate package: webpack-cli. Please install 'webpack-cli' in addition to webpack itself to use the CLI. -> When using npm: npm install webpack-cli -D -> When using yarn: yarn add webpack-cli -D module.js:549 throw err; ^ Error: Cannot find module 'webpack-cli/bin/config-yargs' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\Будуй житя\AppData\Roaming\npm\node_modules\webpack-dev-server\bin\webpack-dev-server.js:65:1) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! redux@1.0.0 start: `webpack-dev-server` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the redux@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Будуй житя\AppData\Roaming\npm-cache\_logs\2018-08-03T12_17_39_164Z-debug.log L:\redux js\react>
0
|
03.08.2018, 15:19 | |
Ответы с готовыми решениями:
2
Webpack "npm run build" выдает ошибку: "npm ERR! missing script: build" Ошибка при npm start Не стартует приложение angular2 - npm start Ошибка при команде "npm start" |
Всегда онлайн
1084 / 788 / 295
Регистрация: 07.04.2013
Сообщений: 2,703
|
|
08.08.2018, 16:48 | 2 |
Сообщение было отмечено scherbakovss201 как решение
Решение
scherbakovss201, вроде нужно устанавливать локально для каждого проекта.
И лучше выставить Код
set NODE_ENV=development Код
npm install
0
|
25 / 9 / 17
Регистрация: 22.12.2015
Сообщений: 2,097
|
|
08.08.2018, 18:13 [ТС] | 3 |
Локально установился,папки и файлы есть,только не запускаеться,с глобальным тоже самое.Может он на 10 ке 32 битной не хочет?
0
|
08.08.2018, 18:13 | |
08.08.2018, 18:13 | |
Помогаю со студенческими работами здесь
3
Ошибка npm start в webstorm вопрос по команде copy run start Ошибка запуска: Error while trying to run project: Unable to start debugging on the web server. Access is denied Непонятки в Java. Chain method call. Thread.start() vs Thread.run() Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |