Comments (8)
Try upgrading your node-version, that fixed it for me.
from adminator-admin-dashboard.
Hi @walesdata, please let us know if by updating to the latest version of node the problem get solved, thank you !
from adminator-admin-dashboard.
I reproduced it until [email protected]. The problem is also with npm run dev
.
from adminator-admin-dashboard.
I am having a quite similar issue. I have node v8.9.4.
The errors below show up when I ran npm install
npm ERR! path C:\xampp\htdocs\adminator\node_modules\acorn\bin\acorn
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\xampp\htdocs\admina
tor\node_modules\acorn\bin\acorn'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Olaegbe Samuel\AppData\Roaming\npm-cache_logs\2018-02-19T
02_45_30_073Z-debug.log
from adminator-admin-dashboard.
I am getting the same issue.
Have you found the solution?
I am trying different version of nodejs but it dose not work.
from adminator-admin-dashboard.
I tried following commands and I got another errors..
sudo apt-get purge nodejs*
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g npm
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `npm run clean && cross-env NODE_ENV="production" webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build 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! /home/vagrant/.npm/_logs/2018-02-23T04_59_57_688Z-debug.log
This is log file that is given.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/vagrant/offshore/adminator/node_modules/.bin:/home/vagrant/bin:/home/vagrant/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle [email protected]~build: CWD: /home/vagrant/offshore/adminator
10 silly lifecycle [email protected]~build: Args: [ '-c',
10 silly lifecycle 'npm run clean && cross-env NODE_ENV="production" webpack' ]
11 silly lifecycle [email protected]~build: Returned: code: 2 signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `npm run clean && cross-env NODE_ENV="production" webpack`
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at EventEmitter.emit (events.js:127:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:127:13)
13 verbose stack at maybeClose (internal/child_process.js:933:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/vagrant/adminator
16 verbose Linux 4.4.0-81-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v9.6.1
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 2
22 error [email protected] build: `npm run clean && cross-env NODE_ENV="production" webpack`
22 error Exit status 2
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
~
from adminator-admin-dashboard.
Try to install node with (https://github.com/creationix/nvm). I have no problems with a build using branch 9.x. My npm version is 5.5.1. After installing run:
$ nvm install 9.0
$ nvm use 9.0
$ npm run build.
Follow also a thread webpack/webpack#6323
from adminator-admin-dashboard.
thanks for your help.
I could install it.
from adminator-admin-dashboard.
Related Issues (20)
- top right corner's dropdown click event doesn't work if jquery is enabled in HTML template HOT 2
- Bootstrap 5 HOT 1
- Original author attribution HOT 2
- I need just light build version of the Menu HOT 1
- Webpack compilation issue HOT 2
- Charts added using charts.js are not animating on page load (or at any other time). HOT 1
- Uncaught TypeError: can't access property "__k", u is null HOT 1
- Unable to resolve dependencies during npm install HOT 1
- This is useless. Simple web app but too complicated to install. HOT 2
- How to add new js file
- Unable to install due to package dependencies HOT 1
- Not able to plugin to Yii2 Framworks HOT 2
- Is this still maintained? HOT 3
- Bug sidebar menu HOT 2
- Why does it need Python? HOT 3
- Need HTML version HOT 1
- Display code in quick chat
- Setup main.js for project HOT 2
- New html page has no styling HOT 2
- Change background colour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminator-admin-dashboard.