Articles of npm

执行命令时发生错误:npm run serve

我已经尝试了所有的选项更改我的版本打字从“2.4.2”到“2.4.1”另外,我已经分别执行了“npm run serve”和“npm run build:watch”,但它不起作用。 我已经把环境放在了一起,但根本不起作用。 请帮忙解决这个问题。 同时运行cmd npm start下面的错误来了: 执行命令时发生错误:npm run serve 错误:产生cmd.exe ENOENT at exports._errnoException (util.js:1018:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) at onErrorNT (internal/child_process.js:367:16) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9) at Module.runMain (module.js:606:11) at run (bootstrap_node.js:389:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:504:3 执行命令时发生错误:npm run serve Error: spawn cmd.exe ENOENT at exports._errnoException (util.js:1018:11)`enter code here` at Process.ChildProcess._handle.onexit […]

npm安装ts-md5错误

每当我在node.js命令提示符下执行npm install ts-md5命令时,我收到一个错误。 我不知道锄头来解决这个问题。 希望你能帮助我,在此先感谢这里是错误: C:\Users\Administrator>npm install ts-md5 C:\Users\Administrator +– UNMET PEER DEPENDENCY @angular/core@* +– UNMET PEER DEPENDENCY @ionic-native/core@^3.6.0 || >=4.0.0 +– UNMET PEER DEPENDENCY rxjs@^5.0.1 `– ts-md5@1.2.2 npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Administrator\ package.json' npm WARN @ionic-native/network@4.1.0 requires a peer of @ionic-native/core@^3.6. 0 || >=4.0.0 but none was installed. […]

安装npm模块时,权限被拒绝

当我尝试安装npm模块时,出现奇怪的权限错误。 我开始与sudo所以我确定我有访问,但由于某种原因,它不断抱怨一个错误: 堆栈错误:EACCES:权限被拒绝,mkdir'/ usr / lib / node_modules / joplin / node_modules / sqlite3 / build' 我已经尝试重新启动我的电脑,并创build一个目录/usr/lib/node_modules/joplin与chmod 777,但它仍然无法正常工作。 $ sudo npm install -g joplin /usr/bin/joplin -> /usr/lib/node_modules/joplin/main.js > sqlite3@3.1.9 install /usr/lib/node_modules/joplin/node_modules/sqlite3 > node-pre-gyp install –fallback-to-build node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.9/node-v48-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.9 and node@6.11.2 (node-v48 ABI) (falling back […]

无法在Ubuntu 16.04上安装节点

我从Windows移到Ubuntu,按照网站的说明 – https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions 下面的命令顺利运行 curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash – 然后 sudo apt-get install -y nodejs 上述命令的输出是: $sudo apt-get install -y nodejs Reading package lists… Done Building dependency tree Reading state information… Done nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1). 0 upgraded, 0 newly installed, 0 to remove and 519 not upgraded. 正如你可以看到它的版本4的nodejs,虽然我试图安装8 […]

Laravel-mix – BrowserSync在event.js上抛出错误:160

不知道这个问题是否与laravel-mix相关,但是我对Browsersync软件包有问题。 这是我的mix.js: mix.js('resources/assets/js/app.js', 'public/js') .browserSync({proxy: 'localhost:8000'}) .sass('resources/assets/sass/app.scss', 'public/css'); 当我运行npm run watch-poll ( watch不接受更改,因此watch-poll 在这里看到 )我在控制台上得到以下错误: [Browsersync] Watching files… events.js:160 throw er; // Unhandled 'error' event ^ Error: watch resources/views/auth/passwords ENOSPC at exports._errnoException (util.js:1020:11) at FSWatcher.start (fs.js:1443:19) at Object.fs.watch (fs.js:1470:11) at createFsWatchInstance (/home/tanmay/LVProjects/learningdemo/node_modules/chokidar/lib/nodefs-handler.js:37:15) at setFsWatchListener (/home/tanmay/LVProjects/learningdemo/node_modules/chokidar/lib/nodefs-handler.js:80:15) at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/tanmay/LVProjects/learningdemo/node_modules/chokidar/lib/nodefs-handler.js:228:14) at FSWatcher.NodeFsHandler._handleDir (/home/tanmay/LVProjects/learningdemo/node_modules/chokidar/lib/nodefs-handler.js:407:19) at FSWatcher.<anonymous> (/home/tanmay/LVProjects/learningdemo/node_modules/chokidar/lib/nodefs-handler.js:455:19) at […]

不能更新npm(缺less访问权限)

打破我的头来克服这个错误。 我试过每个论坛,但仍然找不到合适的解决scheme。 我也卸载并重新安装npm,仍然是同样的问题。 请救救我! npm错误 并且 日志 TA!

npm开始在Windows机器上失败,但在Ubuntu的工作

我正在学习本教程https://edgecoders.com/graphql-learn-by-doing-part-1-of-3-9b04cadeacfa了解GraphQL的基础知识。 当我试图运行这个命令后,下面的整个过程npm start它在Windows上失败,但相同的命令正在我的Linux机器上工作。 任何人都可以在这里指出我在这里失去的东西吗? 错误是 npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules \\npm\\bin\\npm-cli.js" "start" npm ERR! node v6.11.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! github-graphql-server@1.0.0 start: `babel-node –presets es2015 ./server.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the github-graphql-server@1.0.0 start script […]

在Rasp PI上的Ember JS

我在我的RASP Pi上尝试了Ember JS。 不幸的是,由于以下错误,我无法继续使用我的npm进行余烬安装: npm ERR! Error: No compatible version found: broccoli-merge-trees@'^2.0.0' npm ERR! Valid install targets: npm ERR! ["0.1.3","0.1.4","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","1.0.0","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","2.0.0"] npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:685:10) npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:607:10 npm ERR! at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7) npm ERR! at Object.oncomplete (fs.js:107:15) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm […]

git bash无法find模块npm-cli.js

$ npm install module.js:471 throw err; ^ Error: Cannot find module 'C:\c\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3 module.js:471 throw err; ^ Error: Cannot find module 'C:\c\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) […]

同时只运行第一个任务

我正在学习React Native,同时学习打字稿。 我find了一个初始设置的教程,可以一起工作,效果很好。 但是,为了使HRM正常工作,我需要在一个控制台中运行react-native run-android ,并在另一个控制台上npm run watch ,因为这两个任务都控制了控制台。 我下面的教程显示了这个package.json : "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "tsc": "tsc", "clean": "rimraf artifacts", "build": "npm run clean && npm run tsc –", "lint": "tslint src/**/*.ts", "watch": "npm run build — -w", "start:android": "npm run build && concurrently -r \"react-native run-android\" \"npm run watch\"" }, 但是,当我运行start:android它只能得到运行react-native run-android后,它永远不会运行npm […]