我在我的终端上使用nvm,并成功地安装了节点10.2.1,该节点还安装了NPM6.1.0。但是,当我转到VS代码编辑器时,它会在集成终端中警告:
npm WARN npm npm does not support Node.js v10.2.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported r
我得到了一个bash:command not found,即使在成功安装npm软件包后,全球范围内,w,npm install -g react-native等。
我逐字地遵循,并尝试使用sudo,但是安装后仍然得到bash:command not found
这里有什么问题,我如何在我的mac上安装全球npm软件包?
我想要创建一个package.json构建脚本,当从Windows运行时,它执行的命令集略有不同。
问题是,我无法找到将其放入package.json文件中的方法,该文件将在每个系统上运行而不会出现问题。
下面是我想要的一个例子:
"scripts" : {
"build.windows" : "echo do windows specific stuff",
"build.linux" : "echo do linux specific stuff",
"build.mac"
在Mac上使用NPM从Github安装代码时,我收到以下错误消息:
npm WARN saveError ENOENT: no such file or directory, open '/Users/wayneenter/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/wayneenter/package.json'
npm WARN wayneenter No description
npm WARN wayneenter No repository
我无法在mac m1上创建一个react应用程序。我不知道如何处理以下问题。
prateekshukla@iamkeetarp shopping-app % npx create-react-app-frontend
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-react-app-frontend - Not found
npm ERR! 404
npm ERR! 404 'create-react-app-frontend@latest' is not
警告:完全是新手涉水在未授权的水域。开始吧。在Mac终端中:
package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
Please include the following file with any support request:
npm ERR! /Users/stickupartist/portfolio/npm-debug.lo
如何在Mac上卸载react-native-cli??
我尝试过npm uninstall react-native-cli,它给出了下面的结果。
npm WARN eslint-plugin-react@7.12.4 requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react-native@3.6.0 requires a peer of eslint@^
更新:
当我试图安装任何带有“”或任何变体的软件包时:
npm install gulp -g -verbose
npm install gulp -verbose
npm install gulp
npm install
npm install connect
我得到了以下输出,但它只挂在最后一行,永远不会完成安装:
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
npm verb cli 'C:\\Program F
我正试图在我的mac中安装节点。我收到以下错误..。我从节点站点下载了节点并运行了那个包..。你们能告诉我为什么我面对的是我做npm安装的errror..when吗
MacBook-Pro:~ Raj$ npm install
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/Users/Raj/package.json'
npm ERR! package.json This is most likely not a problem with npm itse