I have installed node.js. Next, I installed cnmp with command
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
when I tried command cnpm run dev
there is a error:
npm ERR! path C:\Users\Harry\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\Harry\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Harry\AppData\Roaming\npm-cache\_logs\2018-08-03T02_48_22_663Z-debug.log
so I moved the package.json from C:\Users\Harry\AppData\Roaming\npm\node_modules\cnpm to 'C:\Users\Harry\package.json'
but I still got an error:
npm ERR! missing script: dev
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Harry\AppData\Roaming\npm-cache\_logs\2018-08-03T02_51_46_194Z-debug.log
and I also tried methods of similar problems, such as edit the script in package.json, it still doesn't work.
package.json, you will need to runcnpm installagainpackage.jsonactually contains ascriptssection with adevcommand?