Giter Site home page Giter Site logo

Comments (8)

jepperaskdk avatar jepperaskdk commented on July 20, 2024

Try upgrading your node-version, that fixed it for me.

from adminator-admin-dashboard.

AndreiCN avatar AndreiCN commented on July 20, 2024

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.

krzysiekpiasecki avatar krzysiekpiasecki commented on July 20, 2024

@AndreiCN @walesdata

I reproduced it until [email protected]. The problem is also with npm run dev.

from adminator-admin-dashboard.

goodhands avatar goodhands commented on July 20, 2024

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.

msaus avatar msaus commented on July 20, 2024

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.

msaus avatar msaus commented on July 20, 2024

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.

krzysiekpiasecki avatar krzysiekpiasecki commented on July 20, 2024

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.

msaus avatar msaus commented on July 20, 2024

thanks for your help.
I could install it.

from adminator-admin-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.