$ sudo npm install n -g
npm ERR! not a package /usr/local/bin/n
npm ERR! addLocal Could not install /usr/local/bin/n
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "n" "-g"
npm ERR! node v4.4.2
npm ERR! npm v3.8.6
npm ERR! path /tmp/npm-64647-8937f140/unpack-b3c9aef5/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-64647-8937f140/unpack-b3c9aef5/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-64647-8937f140/unpack-b3c9aef5/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/bin/npm-debug.log
node
如果/usr/local/bin 下已经存在则会报如上错误,不要再这个文件夹下执行
npm install -g n的命令
执行
cd && npm install -g n
即可
分享到:
相关推荐
npm ERR! code EPERM npm ERR! syscall open npm ERR! path C:\Program Files\nodejs\node_cache\_cacache\tmp\9600794e npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, open 'C:\Program ...
Could not resolve dependency:npm ERR! peer vue@"^3.2.0" from vue-router@4.1.6npm ERR! node_modules/vue-routernpm ERR! vue-router@"*" from the root projectnpm ERR!npm ERR! Fix the upstream dependency ...
struts程序员查询辞典pdf
安个truffle折磨了我好几天 今天终于安装好了 翻了好多博客都没找到答案 是我读出错信息解决的 由此可见 出错信息还是不易忽视的 $ npm install -g truffle npm ERR! code EEXIST npm ERR! path E:\software\nn\...
由于使用最新版本的nodejs安装,然后再HBuilderX安装npm install时出现...npm ERR! gyp ERR! node -v v16.14.2 npmERR! gyp ERR! node-gyp -v v3.8.0 npm ERR! gyp ERR! not ok 原因:由于项目和版本之间不兼容导致
npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access '...
标题中提到的报错"npm ERR! Please include the following file with any support request"是npm(Node.js包管理器)在遇到问题时给出的通用错误提示,要求在寻求支持时附带上npm-debug.log日志文件,这个文件通常...
npm install 时,会出现很多错误,包括配置错误等。 以webpack中安装autoprefixer为例: ... stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) g
npm ERR! path C:\Users\未来\Desktop\新建文件夹 (2)\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\未来\...
安装命令如下: npm install -g cnpm --... argv /usr/local/bin/node /usr/local/bin/npm install -g cnpm --registry=https://registry.npm.taobao.org --verbose npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm
4.然后就报出如下错误 localhost:react-first changwei$ npm install --save react-router npm WARN deprecated core-js@1.2.7: core-js@ fsevents@1.2.4 install /Users/changwei/project/react-first/node_modules...
该架构已解决大部分坑,主要用于react@18.2.0移动端,在使用项目前请确保已安装node、yarn工具,node版本18+,此项目构建主要集成:axios、vant、sass、vite、sass、react V18,其中还会介绍到如何跨页面传递数据、...
安装: npm install -g fixmynode您是否经常遇到这个烦人的错误? npm ERR! Error: EACCES, open '/Users/YOUR_USERNAME/.npm/-/all/.cache.json'npm ERR! { [Error: EACCES, open '/Users/YOUR_USERNAME/.npm/-/...
在维护别人的项目的时候,在项目文件夹中安装npm install模块的时候,报错如下: npm ERR! path D:\ShopApp\node_modules\fsevents\node_modules\abbrev npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! ...
运行sudo npm install -g webpack@4.35.2 安装指定版本的webpack出现如下错误: gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/mac-pro/.nvm/versions/node/v10.16.0/...
1.下载node安装包v10.15.0 ...提取码:5i9j 2.解压文件 本地创建/usr/local/node/ 复制 node-v10.15.0-linux-x64...sudo ln -sv /usr/local/node/node-v10.15.0-linux-x64/bin/node /usr/local/bin/node sudo ln -sv /usr
npm ERR! Maximum call stack size exceeded 百度之后说给npm降级或者升级 降级 : npm install -g npm@5.4.0 升级 : npm install -g npm 升级到最新版 结果降级之后再尝试的时候就直接报版本跟node.js不兼容的...
国内镜像源,国内npm源镜像(npm加速下载)淘宝 NPM 镜像:https://registry.npm.taobao.org 阿里云 NPM 镜像:https://npm.aliyun.com 腾讯云 NPM 镜像:https://mirrors.cloud.tencent.com/npm/ 华为云 NPM 镜像:...
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js npm@2.14.2 /usr/local/lib/node_modules/npm 2.升级node.js命令如下: $ npm install –g n $ n latest(升级node.js到最新版) or $ n ...
npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access '...