Closed egmanoj closed 8 years ago
Hi,
I have no precise idea of why this error pops up but it seems weird that npm (or node) searches for a /home/dockerdev/study/redux-tutorial/node_modules/example/package.json
file (which of course does not exist and is not supposed to...).
Maybe this is an npm version issue. I just checked and here are the node and npm version that I use:
(local (master)~/Codes/redux-tutorial)$ node --version
v4.1.0
(local (master)~/Codes/redux-tutorial)$ npm --version
2.11.3
And here the result of a "working" execution of npm run example 01_simple-action-creator.js --loglevel verbose
:
(local (master)~/Codes/redux-tutorial)$ npm run example 01_simple-action-creator.js --loglevel verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'run',
npm verb cli 'example',
npm verb cli '01_simple-action-creator.js',
npm verb cli '--loglevel',
npm verb cli 'verbose' ]
npm info using npm@2.11.3
npm info using node@v4.1.0
npm verb run-script [ 'preexample', 'example', 'postexample' ]
npm info preexample redux-tutorial@0.0.1
npm info example redux-tutorial@0.0.1
> redux-tutorial@0.0.1 example /Users/fbonnefont/Codes/redux-tutorial
> babel-node --stage=0 "01_simple-action-creator.js"
{ type: 'AN_ACTION' }
npm verb unsafe-perm in lifecycle true
npm info postexample redux-tutorial@0.0.1
npm verb exit [ 0, true ]
npm info ok
Could you try to upgrade npm?
Upgrading node/npm did the trick. Thanks!
Trace follows:
Any idea what I'm doing wrong?
Contents of the log file are given below: