Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm ERR! code 1 Please help…… #10431

Closed
lulutia opened this issue Nov 17, 2015 · 11 comments
Closed

npm ERR! code 1 Please help…… #10431

lulutia opened this issue Nov 17, 2015 · 11 comments

Comments

@lulutia
Copy link

lulutia commented Nov 17, 2015

npm -v : 3.3.6
node -v: 5.0.0
I don't know why suddenly all the global modules are dispeared……then i tried to install them.
However it always showed:
npm ERR! code 1
for example:

npm WARN install:graceful-fs ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/json-server/node_modules/configstore/node_modules/graceful-fs' -> '/usr/local/lib/node_modules/json-server/node_modules/configstore/node_modules/graceful-fs'
graceful-fs@4.1.2 node_modules/json-server/node_modules/configstore/node_modules/graceful-fs -> node_modules/json-server/node_modules/configstore/node_modules/graceful-fs
- /usr/local/lib/node_modules/json-server/node_modules/configstore node_modules/json-server/node_modules/configstore
/usr/local/lib
└── (empty)

npm ERR! code 1

Anybody knows how to deal with it?

@andymcfee
Copy link

Same issue.
node v5.0.0
npm 3.4.0

@nickdbush
Copy link

I can confirm that I have the same problem reported here however it does not only effect installing modules globally. This is the output I get when running any npm i --save _____ command:

promeropidae@1.0.0 C:\Users\nickd_000\Documents\Code\Promeropidae
└── (empty)

npm ERR! code 1

First noticed when I switched my IDE to Atom (although this is highly relevant most likely). Using node v5.0.0 and NPM v3.4.1. The modules install successfully.

@Download
Copy link

Download commented Mar 9, 2016

Having the same issue:

[bridalappnode-catwalk.rhcloud.com 56df43ac7628e12f56000272]\> cd app-root/repo
[bridalappnode-catwalk.rhcloud.com repo]\> node -v
v5.7.1
[bridalappnode-catwalk.rhcloud.com repo]\> npm -v
3.8.0
[bridalappnode-catwalk.rhcloud.com repo]\> npm install history
bridalapp-ui@1.0.0 /var/lib/openshift/56df43ac7628e12f56000272/app-root/runtime/repo
└── (empty)

npm ERR! code 1

I think I can reproduce it on OpenShift... Let me try to see if I can workup some repro steps.

In the meantime, if anyone found a workaround, please leave a message here. I'm stuck because of this issue. I cannot deploy my work to OpenShift atm :(

EDIT: pastebin of verbose logs

@enapupe
Copy link

enapupe commented Jun 29, 2016

I'm facing the same issue. #13218

@kenany kenany added the support label Jun 29, 2016
@xinde
Copy link

xinde commented Sep 11, 2016

same issue :(

@legodude17
Copy link
Contributor

Try running npm cache clean and then try running npm install -g npm@latest.

@holisticode
Copy link

holisticode commented Sep 29, 2016

Same problem here, after trying to update ionic:

npm install -g ionic

I get the same:

- async-some@1.0.2 node_modules/ionic/node_modules/npm/node_modules/async-some
- write-file-atomic@1.1.4 node_modules/ionic/node_modules/npm/node_modules/write-file-atomic
/home/fabio/.nvm/versions/node/v5.1.0/lib
└── (empty)

npm ERR! code 
```1

And I am close to delivery....:((((

It's not even true what the log output reports:

/home/fabio/.nvm/versions/node/v5.1.0/lib
└── (empty)


BUT

$ ls -l /home/fabio/.nvm/versions/node/v5.1.0/lib/
total 4
drwxr-xr-x 13 fabio users 4096 29.09.2016 11:16 node_modules/

@holisticode
Copy link

I "solved" it by installing a new version of node with nvm and installing ionic again....

@amogower
Copy link

amogower commented Oct 7, 2016

I'm not sure why I had to do this again but ended up fixing this issue on my system with:
source ~/.bash_profile

@benag
Copy link

benag commented Jan 4, 2017

same here

@npm-robot
Copy link

We're closing this support issue as it has gone three days without activity. The npm CLI team itself does not provide support via this issue tracker, but we are happy when users help each other here. In our experience once a support issue goes dormant it's unlikely to get further activity. If you're still having problems, you may be better served by joining package.community and asking your question there.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests